import request from '@/utils/request'

// 查询视频监控列表
export function listDispatchVideoMonitor(query) {
  return request({
    url: '/dispatch/pipe/dispatchVideoMonitor/list',
    method: 'get',
    params: query
  })
}

// 查询视频监控详细
export function getDispatchVideoMonitor(videoMonitorId) {
  return request({
    url: '/dispatch/pipe/dispatchVideoMonitor/' + videoMonitorId,
    method: 'get'
  })
}

// 新增视频监控
export function addDispatchVideoMonitor(data) {
  return request({
    url: '/dispatch/pipe/dispatchVideoMonitor',
    method: 'post',
    data: data
  })
}

// 修改视频监控
export function updateDispatchVideoMonitor(data) {
  return request({
    url: '/dispatch/pipe/dispatchVideoMonitor',
    method: 'put',
    data: data
  })
}

// 删除视频监控
export function delDispatchVideoMonitor(videoMonitorId) {
  return request({
    url: '/dispatch/pipe/dispatchVideoMonitor/' + videoMonitorId,
    method: 'delete'
  })
}
